data now is gotten using queries
[RRRRHHHH_Code] / ruralHouses client / src / gui / HouseFeaturesGUI.java
index 254f9c9..327ee05 100644 (file)
@@ -237,8 +237,7 @@ public class HouseFeaturesGUI extends JFrame {
                Enumeration<Offer> rhs = rh.getAllOffers().elements();
                while (rhs.hasMoreElements()) {
                        Offer of = rhs.nextElement();
-                       if (of.getBookings() == null
-                                       || of.isBooked()) {
+                       if (of.getBookings() != null) {
                                Vector<Object> row = new Vector<Object>();
                                row.add(of.getOfferNumber());
                                row.add(of.getFirstDay());
@@ -288,7 +287,6 @@ public class HouseFeaturesGUI extends JFrame {
                                        + e1.toString());
                }
                
-               //RegExp to see if telephone number is correct??TODO
                if (telIn.getText().matches("[976]\\d{2}[.\\- ]?\\d{3}[.\\- ]?\\d{3}")
                                && mailField
                                .getText()